package edu.hunau.cxb18home.pojo;

import java.util.List;

/**
 * @author gwl
 * @create 2020-03-05 上午 11:47
 */
public class Course {
    private int cid;
    private String cname;
    private int total;

    public List<Grade> getGrades() {
        return grades;
    }

    public void setGrades(List<Grade> grades) {
        this.grades = grades;
    }

    //关联属性
    private List<Grade> grades;

    public Course() {
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", total=" + total +
                ", grades=" + grades +
                '}';
    }
}
